package org.meal.service;

import cn.meal.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;

public interface MerchantService extends IService<Merchant> {
    /**
     * 验证手机号和验证码
     * @param phone
     * @param code
     * @return
     */
    boolean verifyPhoneAndCode(String phone, String code);

    /**
     * 用户登录，（自动注册）并生成一个唯一的token
     * @param phone
     * @return
     */
    String getTokenByPhone(String phone);
}
